wayland: Add request focus support via gtk_shell
authorJonas Ådahl <jadahl@gmail.com>
Tue, 8 Mar 2016 09:03:06 +0000 (17:03 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 10 Mar 2016 04:31:15 +0000 (12:31 +0800)
commit8fb7f50028eb3729161448b7228f69b673a93b45
treef1c7081cb75e3e98aa9bdab07c06579c4a96c70f
parented430dc00adf437a4002ad7552912e5094565f2c
wayland: Add request focus support via gtk_shell

A gtk_surface.present request was added to gtk_surface which takes
timestamp from some input event, and uses that timestamp to figure out
whether the window can be presented or not. If we don't have a
timestamp, we should just give up instead of making up our own,
otherwise we might steal someones focus.

https://bugzilla.gnome.org/show_bug.cgi?id=763037
gdk/wayland/gdkwindow-wayland.c
gdk/wayland/protocol/gtk-shell.xml